package com.seaboxdata.service.impl;

import com.seaboxdata.dao.SecurityDao;
import com.seaboxdata.service.SecurityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @create 2021-05-31 12:28
 **/
@Service("securityService")
public class SecurityServiceImpl implements SecurityService {

    @Autowired
    private SecurityDao securityDao;

    @Override
    public boolean isSecurity(String selectKey, String accessKey) {
        if (securityDao.getBySelectKeyAndAccessKey(selectKey, accessKey) > 0) {
            return true;
        }
        return false;
    }
}
